function weightMap = ReadWeightsFile(fname)
% clear; clc; close all
% fname = 'C:/Users/Mittal/Desktop/alerts-used-sushil-01-08-2014.txt';
fprintf('Reading weights file... ');
fid = fopen(fname,'r');
tline = fgets(fid);
count = 1;
weightMap = containers.Map('KeyType','char','ValueType','double');

while ischar(tline)
    line = tline;
    components = strsplit(line,'#$#$#');
    weightMap(components{1}) = str2num(components{2});
    tline = fgets(fid);
    count = count + 1;
end
fclose(fid);
fprintf('Done.');
return